

import java.util.Objects;

public class Product {
	
private String code;
private String description;
private  double price;


public String getCode() {
	return code;
}

public String getDescription() {
	return description;
}

public  double getPrice() {
	return price;
}



@Override
public boolean equals(Object obj) {
	if (this == obj)
		return true;
	if (obj == null)
		return false;
	if (getClass() != obj.getClass())
		return false;
	Product other = (Product) obj;
	return Objects.equals(code, other.code);
}


@Override
public String toString() {
	return  code + "_" + description + "_" + price ;
}
public Product(String initialCode,String initialDescription,double initialPrice){
	code = initialCode;
	description = initialDescription;
	price = initialPrice;
}

}
